#ifndef __BSP_ALC_H_
#define __BSP_ALC_H_

#include "Include.h"

void HW_IIC_init(void);
void Init_ALS(void);
void ALS_Init_BasicReg(void);
void ALS_Init_ISR(void);
void ALS_WR_REG(uint8_t _address,uint8_t _dat);
void ALS_WR_Byte(uint8 _dat);
uint8_t ALS_RD_REG(uint8_t _address);


void ALS_Set_Proximity_Interrupt_Threshold(uint8 _islow,uint16 threshold);
void ALS_ClearALL_ISR(void);

void ALS_Read_Lux(float *_lux);
uint8 ALS_Read_Proximity(uint16 *_prox_data);
uint8 ALS_Read_Ch0Light(uint16 *_ch0);
uint8 ALS_Read_Ch1Light(uint16 *_ch1);

void ALS_PowerDown(void);
void ALS_PowerOn(void);





#endif
